package com.example.dubboprovider.service.impl;

import com.example.dubboapi.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class UserServiceImpl implements UserService {

    @Override
    public String getUserInfo(Long userId) {
        return "用户信息: 用户ID=" + userId + ", 用户名=张三, 邮箱=zhangsan@example.com";
    }

    @Override
    public String sayHello(String name) {
        return "Hello, " + name + "! 这是来自Dubbo服务提供者的问候";
    }
}